import http from '@/api/http'


// 获取首页数据
const getHome = (data) => {
    return http({
        url: "api/index",
        method: "get",
        params: data
    })
}


// 获取商品列表
const getGoods = (data) => {
    return http({
        url: "api/goods",
        method: "get",
        params: data
    })
}

// 用户修改头像
const updataUserHeader = (data) => {
    return http({
        url: "user/updataUserHeader",
        method: "post",
        data
    })
}

export {
    getHome,
    getGoods,

}
